﻿import request from "@/utils/axios";

// 获取类目树
export function GetServiceCategoryList(data) {
  return request.post("/support-backend/serviceCategory/categoryList", data);
}
/** B端服务内容-一级类目列表 */
export function GetLevel1CategoryList() {
  return request.get("/support-backend/serviceContent/level1CategoryList");
}
/** 内容分页 */
export function GetServiceContentPage(data) {
  // 约定 body: { pageNum, pageSize, contentName, categoryId, showStatus, sendStatus, createTime, sendTime, updateTime, operationName }
  return request.post("/support-backend/serviceContent/page", data);
}

/** B端服务类目显示/隐藏 */
export function StatusCategoryEnableChange(data) {
  return request.post("/support-backend/serviceCategory/enable", data);
}

/** B端服务类目树 */
export function GetServiceCategoryTree(data) {
  return request.get("/support-backend/serviceCategory/categoryTree", { params: data });
}

/** B端服务内容显示/隐藏 */
export function StatusContentEnableChange(data) {
  return request.post("/support-backend/serviceContent/enable", data);
}

/** B端服务内容手动发送 */
export function ContentManualSend(data) {
  return request.get("/support-backend/serviceContent/manualSend", { params: data });
}

/** B端服务内容删除 */
export function DelServiceContent(data) {
  return request.get("/support-backend/serviceContent/delete", { params: data });
}

/** B端服务类目删除 */
export function DelServiceCategory(data) {
  return request.get("/support-backend/serviceCategory/delete", { params: data });
}

/** B端服务类目新增 */
export function AddServiceCategory(data) {
  return request.post("/support-backend/serviceCategory/add", data);
}

/** B端服务类目更新 */
export function UpdateServiceCategory(data) {
  return request.post("/support-backend/serviceCategory/update", data);
}

/** B端服务内容新增 */
export function AddServiceContent(data) {
  return request.post("/support-backend/serviceContent/add", data);
}

/** B端服务内容修改 */
export function UpdateServiceContent(data) {
  return request.post("/support-backend/serviceContent/update", data);
}

/** B端服务内容详情 */
export function DetailServiceContent(data) {
  return request.get("/support-backend/serviceContent/detail", { params: data });
}

/** B端帮助中心页面默认接口 */
export function GetSelectCategoryContent(data) {
  return request.get("/support-backend/serviceContent/selectCategoryContent", { params: data });
}

/** B端帮助中心查询服务内容接口 */
export function GetSelectContentListByUser(data) {
  return request.get("/support-backend/serviceContent/selectContentListByUser", { params: data });
}

/** B端帮助中心内容搜索接口 */
export function GetSelectContent(data) {
  return request.get("/support-backend/serviceContent/selectContent", { params: data });
}

/** B端帮助中心内容详情 */
export function GetContentDetail(data) {
  return request.get("/support-backend/serviceContent/contentDetail", { params: data });
}
